package com.navi.loaddata.core.oracleEntity.cell1;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by ghost on 2018/3/25.
 */
@Entity
@Table(name = "ETL_CELL_PDS_RESULT_V", schema = "EDALDR", catalog = "")
@IdClass(EtlCellPdsResultVPK.class)
public class EtlCellPdsResultV {
    private String stepId;
    private String subEquipId;
    private String componentId;
    private Date componentEndTime;
    private String paramCollection;
    private String paramName;
    private String siteName;
    private Double paramValue;
    private String paramValue2;
    private Double x;
    private Double y;
    private Long usl;
    private Long lsl;
    private Long target;
    private Long ucl;
    private Long lcl;
    private Long cl;

    @Id
    @Column(name = "STEP_ID")
    public String getStepId() {
        return stepId;
    }

    public void setStepId(String stepId) {
        this.stepId = stepId;
    }

    @Id
    @Column(name = "SUB_EQUIP_ID")
    public String getSubEquipId() {
        return subEquipId;
    }

    public void setSubEquipId(String subEquipId) {
        this.subEquipId = subEquipId;
    }

    @Id
    @Column(name = "COMPONENT_ID")
    public String getComponentId() {
        return componentId;
    }

    public void setComponentId(String componentId) {
        this.componentId = componentId;
    }

    @Id
    @Column(name = "COMPONENT_END_TIME")
    @Temporal(TemporalType.TIMESTAMP)
    public Date getComponentEndTime() {
        return componentEndTime;
    }

    public void setComponentEndTime(Date componentEndTime) {
        this.componentEndTime = componentEndTime;
    }

    @Id
    @Column(name = "PARAM_COLLECTION")
    public String getParamCollection() {
        return paramCollection;
    }

    public void setParamCollection(String paramCollection) {
        this.paramCollection = paramCollection;
    }

    @Id
    @Column(name = "PARAM_NAME")
    public String getParamName() {
        return paramName;
    }

    public void setParamName(String paramName) {
        this.paramName = paramName;
    }

    @Id
    @Column(name = "SITE_NAME")
    public String getSiteName() {
        return siteName;
    }

    public void setSiteName(String siteName) {
        this.siteName = siteName;
    }

    @Basic
    @Column(name = "PARAM_VALUE")
    public Double getParamValue() {
        return paramValue;
    }

    public void setParamValue(Double paramValue) {
        this.paramValue = paramValue;
    }

    @Basic
    @Column(name = "PARAM_VALUE2")
    public String getParamValue2() {
        return paramValue2;
    }

    public void setParamValue2(String paramValue2) {
        this.paramValue2 = paramValue2;
    }

    @Basic
    @Column(name = "X")
    public Double getX() {
        return x;
    }

    public void setX(Double x) {
        this.x = x;
    }

    @Basic
    @Column(name = "Y")
    public Double getY() {
        return y;
    }

    public void setY(Double y) {
        this.y = y;
    }

    @Basic
    @Column(name = "USL")
    public Long getUsl() {
        return usl;
    }

    public void setUsl(Long usl) {
        this.usl = usl;
    }

    @Basic
    @Column(name = "LSL")
    public Long getLsl() {
        return lsl;
    }

    public void setLsl(Long lsl) {
        this.lsl = lsl;
    }

    @Basic
    @Column(name = "TARGET")
    public Long getTarget() {
        return target;
    }

    public void setTarget(Long target) {
        this.target = target;
    }

    @Basic
    @Column(name = "UCL")
    public Long getUcl() {
        return ucl;
    }

    public void setUcl(Long ucl) {
        this.ucl = ucl;
    }

    @Basic
    @Column(name = "LCL")
    public Long getLcl() {
        return lcl;
    }

    public void setLcl(Long lcl) {
        this.lcl = lcl;
    }

    @Basic
    @Column(name = "CL")
    public Long getCl() {
        return cl;
    }

    public void setCl(Long cl) {
        this.cl = cl;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        EtlCellPdsResultV that = (EtlCellPdsResultV) o;

        if (stepId != null ? !stepId.equals(that.stepId) : that.stepId != null) return false;
        if (subEquipId != null ? !subEquipId.equals(that.subEquipId) : that.subEquipId != null) return false;
        if (componentId != null ? !componentId.equals(that.componentId) : that.componentId != null) return false;
        if (componentEndTime != null ? !componentEndTime.equals(that.componentEndTime) : that.componentEndTime != null)
            return false;
        if (paramCollection != null ? !paramCollection.equals(that.paramCollection) : that.paramCollection != null)
            return false;
        if (paramName != null ? !paramName.equals(that.paramName) : that.paramName != null) return false;
        if (siteName != null ? !siteName.equals(that.siteName) : that.siteName != null) return false;
        if (paramValue != null ? !paramValue.equals(that.paramValue) : that.paramValue != null) return false;
        if (paramValue2 != null ? !paramValue2.equals(that.paramValue2) : that.paramValue2 != null) return false;
        if (x != null ? !x.equals(that.x) : that.x != null) return false;
        if (y != null ? !y.equals(that.y) : that.y != null) return false;
        if (usl != null ? !usl.equals(that.usl) : that.usl != null) return false;
        if (lsl != null ? !lsl.equals(that.lsl) : that.lsl != null) return false;
        if (target != null ? !target.equals(that.target) : that.target != null) return false;
        if (ucl != null ? !ucl.equals(that.ucl) : that.ucl != null) return false;
        if (lcl != null ? !lcl.equals(that.lcl) : that.lcl != null) return false;
        if (cl != null ? !cl.equals(that.cl) : that.cl != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = stepId != null ? stepId.hashCode() : 0;
        result = 31 * result + (subEquipId != null ? subEquipId.hashCode() : 0);
        result = 31 * result + (componentId != null ? componentId.hashCode() : 0);
        result = 31 * result + (componentEndTime != null ? componentEndTime.hashCode() : 0);
        result = 31 * result + (paramCollection != null ? paramCollection.hashCode() : 0);
        result = 31 * result + (paramName != null ? paramName.hashCode() : 0);
        result = 31 * result + (siteName != null ? siteName.hashCode() : 0);
        result = 31 * result + (paramValue != null ? paramValue.hashCode() : 0);
        result = 31 * result + (paramValue2 != null ? paramValue2.hashCode() : 0);
        result = 31 * result + (x != null ? x.hashCode() : 0);
        result = 31 * result + (y != null ? y.hashCode() : 0);
        result = 31 * result + (usl != null ? usl.hashCode() : 0);
        result = 31 * result + (lsl != null ? lsl.hashCode() : 0);
        result = 31 * result + (target != null ? target.hashCode() : 0);
        result = 31 * result + (ucl != null ? ucl.hashCode() : 0);
        result = 31 * result + (lcl != null ? lcl.hashCode() : 0);
        result = 31 * result + (cl != null ? cl.hashCode() : 0);
        return result;
    }
}
